html, body {
  margin: 0;
  padding: 0;
}

.container {
  width: 200px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.5;
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Hiragino Sans GB W3", "Microsoft YaHei UI", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

.info {
  margin-right: 10px;
}

.switch-title {
  flex: 1;
  font-size: 1.2em;
  font-weight: bold;
  text-align: left;
  color: #333;
}

.btn-switch {
  position: absolute;
  z-index: -200000;
  opacity: 0;
}

.btn-switch + label {
  display: inline-block;
  width: 63px;
  height: 37px;
  position: relative;
  margin: auto;
  background-color: #ddd;
  border-radius: 37px;
  cursor: pointer;
  outline: 0;
  user-select: none;
}

.btn-switch + label:before {
  content: '';
  display: block;
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 1px;
  right: 1px;
  background-color: #f1f1f1;
  border-radius: 37px;
  transition: background 0.4s;
}

.btn-switch + label:after {
  content: '';
  display: block;
  position: absolute;
  height: 35px;
  width: 35px;
  background-color: #fff;
  border-radius: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: margin 0.4s;
}

.btn-switch:checked + label:before {
  background-color: #8ce196;
}

.btn-switch:checked + label:after {
  margin-left: 28px;
}
